<?php echo '<?xml version="1.0" encoding="utf-8" ?>';?>
<document>
<webSite><?php echo base_url();?></webSite>
<webMaster><?php echo $this->config->item('sys_site_name');?></webMaster>
<updatePeri>48</updatePeri>
<?php foreach($product as $row){?>
<item>
<title><?php echo $row->title;?></title>
<link><?php echo site_url(CTL_FOLDER.'product/detail/'.$row->id);?></link>
<text><![CDATA[<?php echo strcut(replace_htmlAndjs($row->content),200);?>]]></text>
<image></image>
<keywords><?php echo $row->keyword;?></keywords>
<author><?php echo $this->config->item('sys_site_name');?></author>
<source><?php echo $this->config->item('sys_site_name');?></source>
<pubDate><?php echo date("Y-m-d",$row->create_date);?></pubDate>
</item>
<?php }?>
</document>
